<%-- 
    Document   : book_manager
    Created on : Mar 31, 2012, 3:18:49 AM
    Author     : 0905
--%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
   <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>FOOBAR</title>
		<link rel="shortcut icon" href="rsrc/images/book-icon.ico" />
        <style type="text/css">
            @import url(rsrc/css/sched_table.css);
            @import url(rsrc/css/common.css);
            @import url(rsrc/css/login.css);
            @import url(rsrc/css/register.css);
            @import url(rsrc/css/validationEngine.jquery.css);
            
        </style>       
       <script type="text/javascript" src = "rsrc/js/jquery-latest.js"></script>     
       <script>
            $(document).ready(function(){
                $('#userSelectButton').click(function(){
                    var ch = $('#userSelect').val();
                    $('#users_table').html();
                    $('#users_table').load('admin_users',{userSelect : ch},function(){
                        $('#addUser').click(function(){
                           $('#cancelUserForm').click(function(){           
                                $('#user_form').validationEngine('hideAll');
                                $('#user_form').validationEngine('detach');
                            }); 
                        });
                    });
                });
                
            });
            
       </script>
      

    </head>
    <body>
        <div class="main-container">
            <div id="top">
                <div><img src="rsrc/images/LOGO.png" height="50" /></div>
                <div>
                    <ul id="navigation" class='hd'>
                        <li><a href="admin_home"><span>Manage Users</span></a></li>
                        <li><a href="logout"><span>Log Out</span></a></li>
                    </ul>
                </div>
            </div>
            <div>
                <p>
                    <span class="page-title"></span>
                </p>
                <div class="title-separator"></div>
                <div class="clearfix">
                    <div class="right" id = 'loginDiv'>
                        <span class="page-label">Manage Users</span>
			<div class="separator"></div>
			
			<table>
			<tr>
				<td class="label" align="left">User Types:</td>
				<td align="left">
					<select class="input_text" name="userSelect" id="userSelect">
						<option value="5ZmKhNbJtGE="> Customer </option>
						<option value="RBzYSbAKW00="> Accounting </option>
						<option value="zFQ6KRUd4UU="> Audio </option>
						<option value="HU1DA45C4h8="> Book </option>
						<option value="qrdQ65lw8aU="> DVD </option>
						<option value="qdtXe0tybQA="> Magazine </option>
						<option value="mKn4pvAHrh8="> Admin </option>
					</select>
					<input name="userSelectButton" type="button" id="userSelectButton" value="View All" class="gb" />
				</td>
			</tr>
			</table>
                        <c:if test="${!empty confirmMsg}">
                            <span class="label">${confirmMsg}</span>
                        </c:if>
			<div id="users_table"></div>
                    </div>
                    <div id="left">
                        <div style="height:20px"></div>
                        <div class="left-main-control" style="border-right: 1px solid #fff;">                         
                            Manage Users       
                        </div>
                        <div style="height:20px"></div>
                        <a href="admin_cp">
			<div class="left-main-control">
                            Change Password
			</div>
			</a>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
